package sqlOperate;

import java.sql.PreparedStatement;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
 * 
 * @author k01
 * 准备执行操作
 */
public class MySqlAction {
	private String ActionStatement;
	private PreparedStatement pst;
	
	public MySqlAction(String ActionStatement, Connection conn) {
		this.ActionStatement = ActionStatement;
		
		try {
			this.pst = conn.prepareStatement(this.ActionStatement);
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}
	
	public PreparedStatement getPst() {
		return this.pst;
	}
}
